<%@attribute name="link" required="true"
             description="relative url to be used in the link" %>
<%@attribute name="linkId" %>
<%@attribute name="linkClass" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="href" value="${link}" />
<c:if test="${not empty linkId}">
    <c:set var="aId">
        id="${linkId}"
    </c:set>
</c:if>
<c:if test="${not empty linkClass}">
    <c:set var="aClass">
        class="${linkClass}"
    </c:set>
</c:if>
<a ${aId} ${aClass} href="${href}"><jsp:doBody /></a>